package com.ant.storage.pojo;

import com.ant.storage.vo.CityVo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2023-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_info")
@ApiModel(value="UserInfo对象", description="")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("city_id")
    private Integer cityId;

    @TableField("city_name")
    private String cityName;

    @TableField("dep_id")
    private Integer depId;

    @TableField("dep_name")
    private String depName;

    @TableField("name_id")
    private Integer nameId;

    @TableField("user_name")
    private String userName;

    @TableField("tel")
    private String tel;

    @TableField("personnel_id")
    private String personnelId;

    @TableField("creation_time")
    private Date creationTime;

    @TableField("token")
    private String token;

    @TableField("ding_talk")
    private String dingTalk;

    @TableField("divisive")
    private String divisive;

    @TableField("user_msg")
    private String userMsg;

    @TableField("roles")
    private String roles;

    @TableField(exist = false)
    private String role;

    @TableField("last_login")
    private Date lastLogin;

    @TableField("names_id")
    private Integer namesId;

    @TableField("weChat")
    private String weChat;

    @TableField("custom")
    private Integer custom;

    @TableField(exist = false)
    private List<CityVo> CityList;

    @TableField(exist = false)
    private List<Warehouse> WarehouseList;

    @TableField(exist = false)
    private List<Dictionary> DictionaryList;

    @TableField(exist = false)
    private List<Department> DepartmentList;

    @TableField(exist = false)
    private List<SupplierInformation> SupplierList;

    @TableField(exist = false)
    private List<String> ProcurementRoleList;

    @TableField(exist = false)
    private List<Integer> cityPermissionList;

    @TableField(exist = false)
    private List<Integer> roleList;
}
